//消息头部
import React, { Component } from 'react'
import {
    View,
    Text,
    TouchableOpacity,
} from 'react-native';

import { newsinStyle as styles } from '../../../../../styles';
import fmt from '../../../../util/fmtDateUtil';
var Dimensions = require('Dimensions');
var width = Dimensions.get('window').width;
var height = Dimensions.get('window').height;

export default class Newsin_body extends Component {
    constructor(props) {
        super(props);
    }
    render() {
        return (
            <View style={styles.newsin_a}>
                <View style={[styles.newsin_gray, { width: width * 0.89 }]}>
                        <Text style={styles.newsin_text}>
                            {this.props.navigation.state.params.msg.msgContent}
                        </Text>
                    <Text style={styles.newsin_time}>{fmt(this.props.navigation.state.params.msg.msgTime, 'yyyy-MM-dd')}</Text>
                </View>
            </View >
        )
    }
}